package com.goldenautumn.prefabricate.business.mall

import com.goldenautumn.prefabricate.business.entity.CarGoodsInfoVO
import com.goldenautumn.prefabricate.business.entity.GoodsInfoVO
import com.goldenautumn.prefabricate.business.entity.HomeItemDataVo
import com.goldenautumn.prefabricate.business.entity.HomeTabVo
import com.goldenautumn.prefabricate.business.entity.TypeInfoVo

sealed class GoodsInfoUiState {

    data class GoodsDetails(val goods: GoodsInfoVO) : GoodsInfoUiState()

    data class GoodsList(val goodsList: MutableList<GoodsInfoVO>) : GoodsInfoUiState()

    data class GoodsAddCar(var msg:String?) : GoodsInfoUiState()

}

sealed class HomeDataUiState {

    data class BannerData(val banners: MutableList<HomeItemDataVo>) : HomeDataUiState()

    data class HomeMenu(val menus: MutableList<HomeItemDataVo>) : HomeDataUiState()

    data class HomeHit(val hit: MutableList<HomeItemDataVo>) : HomeDataUiState()

    data class HomeTab(val tab: List<HomeTabVo>) : HomeDataUiState()

    data class CategoryGoods(val category: MutableList<TypeInfoVo>) : HomeDataUiState()

}

sealed class CarDataUiState {

    data class CarList(val data: MutableList<CarGoodsInfoVO>) : CarDataUiState()

    data class CarDelete(val msg:String?,val deleteData:List<CarGoodsInfoVO>) : CarDataUiState()

}